package io.persimmon.core.module.schedule;

import java.time.Duration;
import java.util.concurrent.Callable;

public interface ScheduleTask {
    void submitDelayTask(Duration duration, Runnable runnable);

    void submitTimingTask(Duration duration, Callable<Duration> runnable);

    void stop();
}
